home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / cuj9205.zip / 1005110A < prev    next >
Text File  |  1992-06-02  |  1KB  |  41 lines

  1.  
  2. Listing 1
  3. *************
  4. #include <dos.h>
  5.    
  6.    main()
  7.        {
  8.        union REGS inregs, outregs;
  9.        struct SREGS segregs;
  10.        static char full_table[256][8] =
  11.            {   /* Laboriously set up your desired table */ };
  12.  
  13.        static char one_char_table[8] +
  14.            {0XFF,....};
  15.  
  16.         /* Do the full table */   
  17.         segregs.es = ((long) table) >> 16;
  18.         inregs.h.ah = 0x11;
  19.         inregs.h.al = 0;
  20.         inregs.x.cx = 256;
  21.         inregs.x.bp = ( (long) full_table) & 0XFFFF;
  22.         inregs.x.dx = 0;
  23.         inregs.h.bl = 0;
  24.         inregs.h.bh = 8; 
  25.         int86x( 0x25, &inregs, &outregs , &segregs);
  26.  
  27.         /* Do one character full_table */   
  28.         segregs.es = ((long) one_char_table) >> 16;
  29.         inregs.h.ah = 0x11;
  30.         inregs.h.al = 0;
  31.         inregs.x.cx = 1;
  32.         inregs.x.bp = ( (long) one_char_table) & 0XFFFF;
  33.         inregs.x.dx = 0;
  34.         inregs.h.bl = 0;
  35.         inregs.h.bh = 8; 
  36.         int86x( 0x25, &inregs, &outregs , &segregs);
  37.  
  38.    }
  39.  
  40.  
  41.